<?php $this->load->view('admin/_header2') ?>
<script language="javascript" type="text/javascript" src="<?=site_url("Phome/get_lang")?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo site_url('js/city.js')?>"></script>
<table id="tablec" width=100% height=100% border=0 cellpadding=0 cellspacing=0 >
	<tr height=10% valign=top ><td style="background:#D2E0F2">
	<?
	echo form_open("admin/vflight/queryvflight",array("id" => "formPrivate","target" =>"query_context_order"));
	?>
	<table >
		<tr height=35  >
		
		<td>From:</td>
		<td><select name="seFromCity" id="seFromCity" valtoname="txFromCity" valtocode="txFromCityCode"  class="selairport">
			</select><input type=hidden id="txFromCity" name="FromCity"  value="">
			<input id="txFromCityCode" name="FromCityCode" type="text" class="txairc" maxlength=3 value="" />
	 	</td>
		
		<td width=120 align=right >Flight Date:</td>
		<td width=200 ><input type="text" name="FlightDate1" value="<?=$FlightDate1; ?>" class="txdatec" />
		<input type="text" name="FlightDate2" class="txdatec" /></td>
		<td  align=left ><input type="submit" name="bbb" value="Search" />
		<input type="button" name="bbb" value="add" onclick="addvirtualflight();" />
		<input type="button" name="bbb" value="edit" onclick="editvirtualflight();" />
		</td>
		</tr>
		<tr height=35 >
		
		<td>To:</td>
		<td><select name="seDestCity" id="seDestCity" valtoname="txDestCity" valtocode="txDestCityCode"  class="selairport"></select>
		<input type=hidden id="txDestCity" name="DestCity" value=""><input id="txDestCityCode"  name="DestCityCode" type="text" class="txairc" maxlength=3 value="" /></td>
		
		<td width=120 align=right >Class:</td>
		<td width=200 ><input type="text" name="Class" style="width:45px" class="txd" />
		Flightnum:<input type="text" name="FlightNo" style="width:65px" class="txd" />
		</td>
			
		</tr>
	</table>
	<?
	echo form_hidden("pagesize",20);
	echo form_hidden("pagenumber",1);
	echo form_close();
	?>
	
	</td></tr>
	
	<tr height=88% valign=top ><td>
		<iframe name=query_context_order width=100% height="100%" frameborder=0 ></iframe>
	</td></tr>
</table>
<div id="addwin" class="easyui-window" title="add Agent" closed="true" iconCls="icon-edit" style="width:680px;height:450px;padding:0px;background: #fafafa;">
	<div class="easyui-layout" fit="true">
		<div id="dvcontext" region="center" border="false" style="padding:10px;background:#fff;border:1px solid #ccc;">
			<iframe id="ifrawin" name="editcontext" src="" scrolling=auto width=100% height=100% frameborder=0 ></iframe>
		</div>
	</div>
</div>
<script language="javascript">
	document.body.scroll="no";
	
	$(document).ready(function () {		
		init_selairport();
		$('.txdatec').datepick({monthsToShow:2});
	});
	
	function addvirtualflight()
	{
		gd$("ifrawin").src="vflight/addvflights1";	
		$('#addwin').window({title:"add virtual flight"}).window('open');		
	}
	
	function editvirtualflight()
	{
		gd$("ifrawin").src="vflight/editvflights1";	
		$('#addwin').window({title:"edit virtual flight"}).window('open');		
	}

	function editvclass(sid)
	{
		$("#ifrawin").attr("src","vflight/queryvclass/"+sid);
		$('#addwin').window({title:"edit virtual class"}).window('open');		
		
		return false;
	}
</script>

<?php $this->load->view('admin/_footer1') ?>